class ServerInfo{

  ServerInfo(
      this.serverID,
      this.serverType,
      this.serverName,
      this.serverHost,
      this.serverPort,
      this.serverUrl
      );

  int? serverID;
  String serverType;
  String serverName;
  String serverHost;
  String serverPort;
  String serverUrl;

  ServerInfo.fromJson(Map<String, dynamic> json)
      : serverID=json['server_id'],
        serverType = json['server_type'],
        serverName = json['server_name'],
        serverHost = json['server_host'],
        serverPort = json['server_port'],
        serverUrl = json['server_url'];



  Map<String, Object?> toMap()=> {
    'server_id':serverID,
    'server_type':serverType,
    'server_name':serverName,
    'server_host':serverHost,
    'server_port':serverPort,
    'server_url':serverUrl
  };
}